
#ifndef _TF_POLYGON_
#define _TF_POLYGON_



#include "tf_Line.h"

//TfPolygon  begin point must same as end point

class dllDeclspec TfPolygon :public TfLine
{
public:
	double GetPolygonArea();
	double GetPolygonPerimeter();
	int GetPolygonDirection();
	void FilterPolygon(double FilterTol);

	void RotateOrMovePolygon(/*double matrix[4][4]*/);
	void OffsetPolygon();
	void ReversePolygon();
	int  GetNodePolygonNum();
private:
	double GetPointToPointArea(TfPoint pta,TfPoint ptb);

};




#endif

